<!-- 游戏分类 -->
<div class="easyui-layout" data-options="fit:true,border:false">
    <div id="mainContent" data-options="region:'north',height:'auto',border:false" style="overflow:hidden;">
        <div class="searchIndex">
            <ul >
                <li>
                    <label>状态:</label>
                    <select class="easyui-combobox" name="orderStatus" data-options="panelHeight:'auto',editable:false,width:100">   
                        <option value="">所有</option>   
                        <option value="0">正常</option>
                        <option value="2">拉黑</option>
                    </select> 
                </li>
                <li>
                    <label>注册时间:</label>
                    <input id="startDate" class="easyui-datebox" editable=false name="orderDataStart" />&nbsp;至&nbsp;
                    <input id="endDate" class="easyui-datebox" editable=false name="orderDataEnd" />
                </li>
                <li>
                    <label>关键字:</label>
                    <input class="base-input" name="orderNo" />
                </li>
                <li>
                    <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-searchWin8',plain:true">查询</a>
                </li>
            </ul>
        </div>
    </div>
    <div data-options="region:'center',border:false">
        <div id="indexButton" style="padding-left:10px;">
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add-win8',plain:true" onClick="$('#addfactory').dialog('open')">新增分类</a>
            <!--<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-trackRecordwin8',plain:true" onClick="$('#editfactory').dialog('open')">修改</a>-->
            <!-- <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-searchWin8',plain:true" onClick="$('#lookfactory').dialog('open')">查看</a> -->
            <!--<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-removeWin8',plain:true" onClick="$('#').dialog('open')">删除</a>-->
        </div>
        <table class="easyui-datagrid" data-options="url:'../../json/replyEdit.asp',toolbar:'#indexButton',pagination:true,fit:true,autoRowHeight:false,rownumbers:true,border:false,fitColumns:true,nowrap:false,singleSelect:true,onDblClickRow:lookfactoryone,method:'get'">
            <thead>
                <tr>
                    <th data-options="field:'orderNo',width:100,align:'center'">排序</th>
                    <th data-options="field:'classifyName',width:200,align:'center'">分类名称</th>
                    <th data-options="field:'11',width:80,align:'center',formatter:PageObject.gameUserFormatter">操作</th>
                </tr>
            </thead>
        </table>
    </div>
</div> 

<!-- 新增分类 -->
<div id="addfactory" class="easyui-dialog" data-options="title:'新增分类',closable:true,closed:true,modal:true,width:350,height:200,buttons:'#createBranchBtn'">
    <div class="con_form">
        <ul >
            <li>
                <label>排序：</label>
                <input class="base-input"/>
            </li>
            <li>
                <label>分类名称：</label>
                <input class="base-input"/>
            </li>
        </ul>
    </div>
    <div id="createBranchBtn">
        <center>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-filesavewin8'" onClick="$.messager.alert('提示','保存成功！','info');">保存</a>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-closeWin8'" onClick="$('#addfactory').dialog('close')">关闭</a>
        </center>
    </div>
</div>

<!-- 修改分类 -->
<div id="editfactory" class="easyui-dialog" data-options="title:'修改分类',closable:true,closed:true,modal:true,width:350,height:200,buttons:'#editBranchBtn'">
    <div class="con_form">
        <ul>
            <li>
            <label>排序：</label>
            <input class="base-input" value="01" />
        </li>
        <li>
            <label>分类名称：</label>
            <input class="base-input" value="XXX" />
        </li>
        </ul>
    </div>

    <div id="editBranchBtn">
        <center>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-filesavewin8'" onClick="$.messager.alert('提示','保存成功！','info');">保存</a>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-closeWin8'" onClick="$('#editfactory').dialog('close')">关闭</a>
        </center>
    </div>
</div>

<script type="text/javascript">
    function lookfactoryone(rowIndex, rowData){
        $('#lookfactory').dialog('open');
    }
    ;(function($,window, PageObject){
        // 格式化datagrid(修改最后一列数据为详情)
        PageObject.gameUserFormatter = function (value, row, rowIndex) {
            return "<a href='javascript:void(0);' style='color:blue;' onclick='$(\"#editfactory\").dialog(\"open\");'>编辑</a><a href='javascript:void(0);' style='color:blue;margin-left:10px;' onclick='PageObject.gameUserDetail();'>删除</a>";
        };
    })(jQuery,window, window.PageObject = {});

</script>